package com.fh.controller;

import com.fh.model.ProductSku;
import com.fh.service.StockUpdateService;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("stockupdate")
public class StockUpdateController {
    @Resource
    private StockUpdateService stockUpdateService;


    @PutMapping("update")

    public  int  update(@RequestBody  ProductSku productSku){
        return  stockUpdateService.update(productSku);
    }

}
